package com.pelli.imarket.client;

import com.pelli.imarket.client.models.DataEntryTreeModel;
import com.pelli.imarket.client.models.test.Folder;

public class DataEntryTreeCreator {

	
	
	public static Folder getTree(){
		
		Folder root = new Folder("root");
		
		Folder[] folders = new Folder[]{
				new Folder("Data Entry", new DataEntryTreeModel[]{
						new DataEntryTreeModel("USER", "Utenti"),
						new DataEntryTreeModel("CATEGORIA", "Categorie"),
						new DataEntryTreeModel("000002", "Catene"),
						new DataEntryTreeModel("000003", "Comuni"),
						new DataEntryTreeModel("000004", "Filiali"),
						new DataEntryTreeModel("000005", "Marche"),
						new DataEntryTreeModel("000006", "Prodotti"),
						new DataEntryTreeModel("000007", "Produttori"),
						
				})
		};
		for (int i = 0; i < folders.length; i++) {
			root.add(folders[i]);
		}
		return root;
	}
}
